package hlhj.fhp.checkpoint.customView

import android.content.Context
import android.view.LayoutInflater
import android.widget.LinearLayout
import android.widget.PopupWindow
import hlhj.fhp.checkpoint.R
import kotlinx.android.synthetic.main.pop_process.view.*

/**
 * Created by Never Fear   on 2018\11\9 0009.
Never More....
 */
class ProcessPop(private val c:Context) :PopupWindow() {
    init {
        this.width=LinearLayout.LayoutParams.MATCH_PARENT
        this.height=LinearLayout.LayoutParams.MATCH_PARENT
        this.isFocusable=true
        init()
    }

    private fun init() {
        contentView=LayoutInflater.from(c).inflate(R.layout.pop_process,null)
        this.animationStyle=R.style.rulePopStyle

        contentView.btDiss.setOnClickListener {
            dismiss()
        }
    }
}